<template>
	<view class="mosk">
		<view class="mosk-box">
			<!-- 图标 -->
			<!-- 文本 -->
			<view class="mosk-box-text">
				<view> 退还保证金</view>
				<view>
					<text> 提现{{ensureAccount}}元保证金到余额 </text>
					<text> 金牌身份保留失败 </text>
				</view>
			</view>
			<!-- 确认按钮 -->
			<view class="mosk-box-btn">
				<view @click="makeSure(1)"> 确认 </view>
				<view @click="makeSure(2)"> 取消</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default ({
		props: {
			ensureAccount: {
				type: Number,
				default: 0,
			},
		},
		data() {
			return {}
		},
		filters: {
			filterMonery(e) {
				return e.toFixed(0);
			}
		},
		methods: {
			makeSure(e) {
				this.$emit('close', e);
			},
		}
	})
</script>
<style scoped lang="scss">
	.mosk {
		position: fixed;
		top: 0;
		left: 0;
		background: rgba(0, 0, 0, 0.5);
		height: 100vh;
		width: 100vw;
		display: flex;
		justify-content: center;
		align-items: center;

		&-box {
			width: 630rpx;
			height: 470rpx;
			background: #FFFFFF;
			border-radius: 24rpx;
			display: flex;
			flex-direction: column;
			align-items: center;

			&-text {
				text-align: center;

				&>view:nth-child(1) {
					font-size: 40rpx;
					font-weight: 800;
					color: #262626;
					margin-top: 40rpx;
				}

				&>view:nth-child(2) {
					margin-top: 88rpx;
					font-size: 32rpx;
					display: flex;
					flex-direction: column;
					line-height: 1.5;

					&>text:first-child {
						font-weight: 400;
						color: rgba(81, 81, 81, 1);
					}

					&>text:last-child {
						font-weight: 400;
						color: #F85C43;
						font-size: 28rpx;
					}
				}
			}
		}
	}

	.mosk-box-btn {
		display: flex;
		justify-content: space-between;
		margin-top: 70rpx;
		width: 630rpx;

		&>view:first-child {
			width: 254rpx;
			height: 94rpx;
			background: #F1F1F5;
			color: #262626;
			border-radius: 12rpx;
			opacity: 1;
			background: #FCC92D;
			box-shadow: 0px 6px 12px 2px rgba(252, 201, 45, 0.3);
			line-height: 94rpx;
			text-align: center;
			font-size: 28rpx;
			margin-left: 30rpx;
			font-weight: bold;
		}

		&>view:last-child {
			width: 254rpx;
			height: 94rpx;
			background: #F1F1F5;
			color: #7F7F7F;
			border-radius: 12rpx;
			opacity: 1;
			background: #F1F1F5;
			line-height: 94rpx;
			text-align: center;
			font-size: 28rpx;
			margin-right: 30rpx;
		}
	}
</style>